<%--
  Created by IntelliJ IDEA.
  User: LT
  Date: 2018-11-02
  Time: 11:30
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="bootstrap/css/bootstrap.css">
    <script type="text/javascript" src="jquery-3.2.1.min.js"></script>
    <script type="text/javascript" src="bootstrap/js/bootstrap.js"></script>

</head>
<body>
<nav class="navbar navbar-default" >
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
        <a class="navbar-brand" href=" ">Home</a>
    </div>

    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse navbar-ex1-collapse">
        <ul class="nav navbar-nav">
            <li class="active"><a href="#">后台管理系统</a></li>

        </ul>

        <ul class="nav navbar-nav navbar-right">
            <li><a href="#">用户：张三</a></li>
            <li class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
                <ul class="dropdown-menu">
                    <li><a href="#">Action</a></li>
                    <li><a href="#">Another action</a></li>
                    <li><a href="#">Something else here</a></li>
                    <li><a href="#">Separated link</a></li>
                </ul>
            </li>
        </ul>
    </div><!-- /.navbar-collapse -->
</nav>

<div class="container">
    <div class="row">
        <div class="col-sm-3">
            <ul class="list-group">
                <li class="list-group-item">用户列表</li>
                <li class="list-group-item">查询用户</li>
                <li class="list-group-item">添加用户</li>
            </ul>
        </div>
        <div class="col-sm-9">
            <!-- TAB NAVIGATION -->
            <ul class="nav nav-tabs" role="tablist">
                <li class="active"><a href="#tab1" role="tab" data-toggle="tab">用户列表</a></li>
                <li><a href="#tab2" role="tab" data-toggle="tab">用户查询</a></li>
                <li><a href="#tab3" role="tab" data-toggle="tab">增加用户</a></li>
            </ul>
            <!-- TAB CONTENT -->
            <div class="tab-content">
                <div class="active tab-pane fade in" id="tab1">
                    <table class="table table-hover" style="border: 1px solid #e3e3e3; border-top: 0px; ">
                        <thead>
                        <tr>
                            <th>用户ID</th>
                            <th>用户名字</th>
                            <th>用户地址</th>
                            <th>EMAIL</th>
                        </tr>
                        </thead>
                        <tbody>
                        <c:forEach items="${list}" var="user">
                            <tr>
                                <td>${user.id}</td>
                                <td>${user.name}</td>
                                <td>${user.address}</td>
                                <td>${user.email}</td>
                            </tr>
                        </c:forEach>
                        </tbody>
                    </table>
                </div>
                <div class="tab-pane fade" id="tab2">
                    <h2>用户查询</h2>
                    <p>Lorem ipsum.</p>
                </div>
                <div class="tab-pane fade" id="tab3">
                    <h2>增加用户</h2>
                    <p>Lorem ipsum.</p>
                </div>
            </div>


        </div>
    </div>
</div>

</body>
</html>
